package ch05.visitor;

import ch05.Token;

import java.util.ArrayList;
import java.util.List;

/**
 * 向量数据节点
 */
public class VectorNode extends ExprNode {
    List<ExprNode> elements = new ArrayList<ExprNode>();
    public VectorNode(Token token, List<ExprNode> elements) {
        super(token);
        this.elements = elements;
    }


    @Override
    public void visit(VecMathVisitor visitor) {
        visitor.visit(this);
    }
}
